﻿@using Commonality.ReturnView
@using ModelToDto
@using Commonality
@model List<MenueDTO>
<table class="table table-hover table-expandable">
    <thead>
        <tr>
            <th style="width:6%">ID</th>
            <th style="width:25%">一级菜单</th>
            <th style="width:15%">图标</th>
            <th style="width:20%">菜单层级</th>
            <th style="width:35%">操作</th>
        </tr>
    </thead>
    <tbody role="alert" aria-live="polite" aria-relevant="all">
        @foreach (MenueDTO men in Model)
        {
            <tr class="even">
                <td>@men.Meu_Id</td>
                <td>@men.Meu_Name</td>
                <td>@men.Meu_Icon</td>
                <td>@men.Menu_Level</td>
               
                <td>
                    <input type="button" class="btn btn-primary" value="解禁" />
                    <input type="button" class="btn btn-primary" value="禁用" />
                    <input type="button" class="btn btn-primary" value="编辑" onclick='location.href=("/Menue/Edit?id=@men.Meu_Id")'>
                    <button type="button" class="btn btn-danger" onclick="confirm(AjaxDeleteMenue,@men.Meu_Id,'删除：@men.Meu_Name ?')">删除</button>
                    <input type="button" class="btn btn-primary" value="新增" onclick='location.href=("/menue/Add?parentId=@men.Meu_Id")'>

                    <input type="button" class="btn btn-primary" value="分配按钮" onclick='location.href=("/menue/AssigMuneBtn?menuId=@men.Meu_Id")'>

                </td>
            </tr>
            <tr>
                <td></td>
                <td colspan="4">
                    <div class="tab-pane in active">
                        <div class="profile-user-info profile-user-info-striped">
                            <div class="profile-info-row">
                                @foreach (var child in men.ChildList)
                                {
                                    {
                                        <div style="display: -webkit-box;height: 35px;box-sizing:inherit">
                                            <div class="profile-info-name" style="width:20%">
                                                <span>菜单名称：@child.Meu_Name</span>
                                            </div>
                                            <div class="profile-info-name" style="width:20%">
                                                <span>URL：@child.Meu_Url</span>
                                            </div>
                                            <div class="profile-info-name" style="width:20%">
                                                <span>描述：@child.Description</span>
                                            </div>
                                            <div class="profile-info-name" style="width:20%">
                                                <span>排序：@child.Meu_Sort</span>
                                            </div>
                                            <div class="profile-info-name" style="width:20%">
                                                <a href="">解禁</a>
                                                <a href="">禁用</a>
                                                <a href="/Menue/Edit?id=@child.Meu_Id">编辑</a>
                                                <a href="javascript:;" onclick="confirm(AjaxDeleteMenue,@child.Meu_Id,'删除：@child.Meu_Name ?')">删除</a>
                                            </div>
                                        </div>
                                    }
                                }
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        }
    </tbody>
</table>
